class People {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

// TODO 修复Teacher类，使其通过继承拥有name属性和方法

class Teacher {
    private String skill;  // 技能

    public String getSkill() {
        return skill;
    }

    public void setSkill(String skill) {
        this.skill = skill;
    }

    public void printInfo() {
        System.out.println("我是一名老师，我的名字是" + getName() + "，我的技能是" + getSkill());
    }
    
}

public class Task {
    public static void main(String[] args) {
        Teacher teacher = new Teacher();
        teacher.setName("张三");
        teacher.setSkill("Java");
        teacher.printInfo();
        System.out.println(teacher.getName() + "的技能是" + teacher.getSkill());
    }
}